﻿@model zhangmenren.Models.ViewModle.WorksModel
<style>

    .lis {
        text-indent: 15px;
        width: 70%;
        font-size: 14px;
        overflow: hidden;
    }

    .list {
        display: flex;
        justify-content: space-between;
        box-sizing: border-box;
        width: 100%;
        height: 50px;
        padding: 5px 10px;
        border-bottom: 1px solid #ccc;
    }

    .dow {
        margin-top: 15px;
        padding: 2px;
        background-color: blue;
        color: #fff;
        font-size: 12px;
        border-radius: 5px;
    }
</style>
<div class="bg-white">

    <header class="mui-bar mui-bar-nav head-bar-nav">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left" href='@Url.Action("Index")'></a>
        <h1 class="mui-title">资料详情</h1>
        <a class="mui-icon mui-icon-more mui-pull-right" onclick="jsBridge.share()"></a>
    </header>
    <!--DOM -->
    <div class="mui-content bg-white">
        <!---->
        <div class="tutorial-information-content-detail">
            <div class="tutorial-information-detail-title mui-text-center">
                <br />
                <h5 class="mui-text-left">@Model.Title</h5>
                <p class="mui-clearfix mui-text-left">
                    <span class="mui-badge mui-badge-inverted mui-pull-left">
                        作者 ：@Model.Author
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        收藏（@Model.ShouChangNum）
                    </span>
                    <span class="mui-badge mui-badge-inverted mui-badge-yellow mui-pull-right" style="font-size: 16px;">
                        @(Model.Price == 0 ? "免费" : "￥" + Model.Price.ToString("0.##"))
                    </span>
                </p>
            </div>
            <div class="tutorial-information-detail-body">
                <p style="text-indent: 2em;">@Model.Describe</p>
            </div>
        </div>
        <!---->
    </div>



    @if (ViewBag.ISOK)
    {

        foreach (var item in (ViewBag.List as List<zhangmenren.Models.ViewModle.TuiJianModel>))
        {
    <div class="list">
        <div class="lis">
            @item.ChapterTitle
        </div>
        <div class="down">
            <a href="@item.Url" download="@item.Url"><div class="dow">点击下载</div></a>
        </div>
    </div>

        }
    }
    else
    {
        <div class="toinfo-detail-flexed-box">
            <a href='@Url.Action("Index","Order",new{id=Model.Id})' class="mui-btn mui-btn-block mui-btn-yellow">
                立即购买
            </a>
        </div>
    }

</div>